package com.ruoyi.mall.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品品牌对象 pms_brand
 * 
 * @author zhanghang
 * @date 2023-10-31
 */
public class PmsBrand extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id */
    private String id;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private String name;

    /** 品牌名称的拼音 */
    @Excel(name = "品牌名称的拼音")
    private String pinyin;

    /** 品牌logo的URL */
    @Excel(name = "品牌logo的URL")
    private String logo;

    /** 品牌简介 */
    @Excel(name = "品牌简介")
    private String description;

    /** 关键词列表，各关键词使用英文的逗号分隔 */
    @Excel(name = "关键词列表，各关键词使用英文的逗号分隔")
    private String keywords;

    /** 自定义排序序号 */
    @Excel(name = "自定义排序序号")
    private String sort;

    /** 销量（冗余） */
    @Excel(name = "销量", readConverterExp = "冗=余")
    private String sales;

    /** 商品种类数量总和（冗余） */
    @Excel(name = "商品种类数量总和", readConverterExp = "冗=余")
    private String productCount;

    /** 买家评论数量总和（冗余） */
    @Excel(name = "买家评论数量总和", readConverterExp = "冗=余")
    private String commentCount;

    /** 买家好评数量总和（冗余） */
    @Excel(name = "买家好评数量总和", readConverterExp = "冗=余")
    private String positiveCommentCount;

    /** 是否启用，1=启用，0=未启用 */
    @Excel(name = "是否启用，1=启用，0=未启用")
    private String enable;

    /** 数据创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 数据最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPinyin(String pinyin) 
    {
        this.pinyin = pinyin;
    }

    public String getPinyin() 
    {
        return pinyin;
    }
    public void setLogo(String logo) 
    {
        this.logo = logo;
    }

    public String getLogo() 
    {
        return logo;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setSort(String sort) 
    {
        this.sort = sort;
    }

    public String getSort() 
    {
        return sort;
    }
    public void setSales(String sales) 
    {
        this.sales = sales;
    }

    public String getSales() 
    {
        return sales;
    }
    public void setProductCount(String productCount) 
    {
        this.productCount = productCount;
    }

    public String getProductCount() 
    {
        return productCount;
    }
    public void setCommentCount(String commentCount) 
    {
        this.commentCount = commentCount;
    }

    public String getCommentCount() 
    {
        return commentCount;
    }
    public void setPositiveCommentCount(String positiveCommentCount) 
    {
        this.positiveCommentCount = positiveCommentCount;
    }

    public String getPositiveCommentCount() 
    {
        return positiveCommentCount;
    }
    public void setEnable(String enable) 
    {
        this.enable = enable;
    }

    public String getEnable() 
    {
        return enable;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("pinyin", getPinyin())
            .append("logo", getLogo())
            .append("description", getDescription())
            .append("keywords", getKeywords())
            .append("sort", getSort())
            .append("sales", getSales())
            .append("productCount", getProductCount())
            .append("commentCount", getCommentCount())
            .append("positiveCommentCount", getPositiveCommentCount())
            .append("enable", getEnable())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .toString();
    }
}
